﻿<%@ Page Language="C#" MasterPageFile="~/Gallery.Master" AutoEventWireup="true" Inherits="Registration" CodeBehind="Registration.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="Server">
    <br/>
    <div class="bordered">
        <h2>Registration form</h2>
        <table style="text-align: center">
            <tr>
                <td>User name:</td>
                <td>
                    <asp:TextBox ID="TextBoxUserName" runat="server"></asp:TextBox>
                </td>
                <td style="display: none">
                    <asp:RequiredFieldValidator ID="ValidatorUserName" runat="server" ErrorMessage="Please enter the user name!" ControlToValidate="TextBoxUserName" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>E-mail:</td>
                <td>
                    <asp:TextBox ID="TextBoxEmail" runat="server"></asp:TextBox>
                </td>
                <td style="display: none">
                    <asp:RequiredFieldValidator ID="ValidatorEmail" runat="server" ErrorMessage="Please enter your email." ControlToValidate="TextBoxEmail" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                    <br/>
                    <asp:RegularExpressionValidator ID="ValidatorRegEx" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="Incorrect e-mail address." ForeColor="#FF3300" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>Password:</td>
                <td>
                    <asp:TextBox ID="TextBoxPassword" runat="server" TextMode="Password"></asp:TextBox>
                </td>
                <td style="display: none">
                    <asp:RequiredFieldValidator ID="ValidatorPassword" runat="server" ErrorMessage="Please enter the password!" ControlToValidate="TextBoxPassword" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Verify password:</td>
                <td>
                    <asp:TextBox ID="TextBoxVerifyPassword" runat="server" TextMode="Password"></asp:TextBox>
                </td>
                <td style="display: none">
                    <asp:RequiredFieldValidator ID="ValidatorVerifyPassword" runat="server" ErrorMessage="Please verify your password." ControlToValidate="TextBoxVerifyPassword" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                    <br />
                    <asp:CompareValidator ID="CompareValidatorPassword" runat="server" ErrorMessage="Paaswords not match." ControlToCompare="TextBoxPassword" ControlToValidate="TextBoxVerifyPassword" ForeColor="#FF3300"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td style="text-align: right">
                    <asp:Button ID="ButtonRegister" runat="server" OnClick="ButtonReg_Click" Text="Submit" CssClass="btn"/>
                    <br/>
                    <a href="Login.aspx">Already have an account? Click here to login</a>
                </td>
                <td>&nbsp;</td>
            </tr>
        </table>
    </div>
</asp:Content>


